<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/2/17 0017
 * Time: 0:28
 */

namespace app\validate;


use think\Validate;

class UserLoginValidate extends  Validate
{
    protected $rule = [
        'account'=>'require',
        'password'=>'require',
        'loginIp'=>'require',
    ];

    protected $message =[
        'account.require'=>'登录账号不能为空',
        'password.require'=>'登录密码不能为空',
        'loginIp.require'=>'登录Ip不能为空'
    ];
    protected $scene =[
        'login'=>['account','password','loginIp']
    ];

}